/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * AsignacionNotaAlumno.java
 *
 * Created on 14-jul-2012, 1:14:36
 */

package interfaz;

import Clases.Alumno;
import Clases.Alumnonota;
import Clases.AlumnonotaPK;
import Clases.Catedraticocurso;
import Clases.Cursounidad;
import Clases.Nota;
import Controladores.AlumnoPersonalizado;
import Controladores.AlumnonotaJpaController;
import Controladores.AlumnonotaPersonalizado;
import Controladores.CatedraticocursoJpaController;
import Controladores.CursounidadJpaController;
import Controladores.NotaPersonalizado;
import escuela.conexion;
import escuela.exceptions.NonexistentEntityException;
import escuela.exceptions.PreexistingEntityException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.swing.SpinnerNumberModel;
import javax.swing.UIManager;
import javax.swing.table.DefaultTableModel;
/**
 *
 * @author PaBLo
 */
public class AsignacionNotaAlumno extends javax.swing.JDialog {
    Mensajes msj = new Mensajes(this);
    short idcat = 1;
    conexion cnx = conexion.ObtenerInstancia();
    EntityManagerFactory emf = cnx.ObtenerEMF();
    ArrayList idcursos= new ArrayList();
    ArrayList idunidades= new ArrayList();
    ArrayList idciclos=new ArrayList();
    ArrayList idnotas=new ArrayList();
    ArrayList idreporte=new ArrayList();
    NotaPersonalizado notas = new NotaPersonalizado(emf);
    AlumnonotaPersonalizado alumnotas = new AlumnonotaPersonalizado(emf);
    CursounidadJpaController cursos = new CursounidadJpaController(emf);
    CatedraticocursoJpaController catcurso = new CatedraticocursoJpaController(emf);
    AlumnoPersonalizado alumnos = new AlumnoPersonalizado(emf);
    SpinnerNumberModel ntp;//notaporcentual;
    SpinnerNumberModel ntn;//notaneta
    boolean bandera = false;//para ciclo
    boolean bandera1 =false;//para curso
    boolean bandera0 = false;//para codigo personal
    boolean bandera2 = false;//para actividad
    boolean bandera3 = false;//para unidad
    boolean repetido = false;
    boolean bandera4=false;//para los datos del reporte
    /** Creates new form AsignacionNotaAlumno
     * @param parent
     * @param modal
     * @param idCatedratico
     */
    public AsignacionNotaAlumno(java.awt.Frame parent, boolean modal,short idCatedratico) {
        super(parent, modal);
        initComponents();
        this.setLocationRelativeTo(null);
        this.idcat=idCatedratico;
        //this.NotaNObtenida.setModel(ntn);
        //this.NotaPObtenida.setModel(ntp);
        CargarReporte();
        CargarCiclo();
        CargarCursos();
        CargarAlumnos();
        CargarUnidades();
        CargarActividad();
        bandera0=true;
        bandera=true;
        bandera3=true;
        bandera4=true;
    }
    /** Este procedimiento carga los datos para seleccionar el reporte deseado
     */
    private void CargarReporte(){
        idreporte.clear();
        List<Cursounidad> reportecuruni = cursos.findCursounidadEntities();
        for(Cursounidad cu: reportecuruni){
           if(cu.getCatedraticocurso().getCatedratico().getIdCatedratico()==idcat){
                SimpleDateFormat fecha = new SimpleDateFormat("yyyy");
                this.CicloCursoUnidad.addItem(fecha.format(cu.getCatedraticocurso().getCiclocurso().getAño())
                        +" - "+cu.getCatedraticocurso().getCurso().getNombre()
                        +" - "+cu.getUnidad().getNombre());
                idreporte.add(cu.getIdCursoUnidad());
           }
        }
        //cargar datos a reporte
        CargarDatosReporte();
    }
    /** Este procedimiento cargo los datos del reporte seleccionado
     */
    private void CargarDatosReporte(){
        List<Alumnonota> reportealunot = alumnotas.pBuscarxIdCursounidad(Short.parseShort(idreporte.get(this.CicloCursoUnidad.getSelectedIndex())+""));
        if(reportealunot!=null){
            MiModelo modelo = new MiModelo();
            modelo.addColumn("Codigo Personal");
            modelo.addColumn("Nombres");
            modelo.addColumn("Apellidos");
            modelo.addColumn("Actividad");
            modelo.addColumn("Nota Neta");
            modelo.addColumn("Nota Porcentual");
            modelo.addColumn("Fecha");
            Object[] filas = new Object [7];
            for(Alumnonota ba: reportealunot){
                filas[0]=ba.getAlumno().getCodigoPersonal();
                filas[1]=ba.getAlumno().getNombres();
                filas[2]=ba.getAlumno().getApellidos();
                filas[3]=ba.getNota().getActividad();
                filas[4]=ba.getNotaObtenidaNeta()+"/"+ba.getNota().getNotaNeta();
                filas[5]=ba.getNotaObtenidaPorcentual()+"/"+ba.getNota().getNotaPorcentual();
                SimpleDateFormat fecha = new SimpleDateFormat("dd/MM/yyyy");
                filas[6]=fecha.format(ba.getNota().getFecha());
                modelo.addRow(filas);
            }
            this.TablaReporte.setModel(modelo);
        }
    }
    /** Este procedimiento carga los ciclos en los que el catedratico da clases
     */
    private void CargarCiclo(){
        List<Cursounidad> ciclos=cursos.findCursounidadEntities();
        boolean yaesta=false;
        for(Cursounidad ccl:ciclos){
            for(Object a:idciclos){
                if(ccl.getCatedraticocurso().getCiclocurso().getIdCicloCurso()==a){
                    yaesta=true;
                }
            }
            if((ccl.getCatedraticocurso().getCatedratico().getIdCatedratico()==idcat)&&(!yaesta)){
                SimpleDateFormat fecha = new SimpleDateFormat("yyyy");
                this.Ciclo.addItem(fecha.format(ccl.getCatedraticocurso().getCiclocurso().getAño()));
                idciclos.add(ccl.getCatedraticocurso().getCiclocurso().getIdCicloCurso());
            }
        }
    }
    /** Este procedimiento carga las unidades del curso seleccionado que el catedratico imparte
     */
    private void CargarUnidades(){
        idunidades.clear();
        this.Unidad.removeAllItems();
        List<Cursounidad> curso = cursos.findCursounidadEntities();
        short idcur=Short.parseShort(idcursos.get(this.Curso.getSelectedIndex()).toString());
        for(Cursounidad cur:curso){
            if((cur.getCatedraticocurso().getCatedratico().getIdCatedratico()==idcat)&&(cur.getCatedraticocurso().getCurso().getIdCurso()==idcur)){
                this.Unidad.addItem(cur.getUnidad().getNombre());
                idunidades.add(cur.getUnidad().getIdUnidad());
            }
        }
    }
    /** Este procedimiento carga los alumnos que pertenecen al grado y que por lo tanto llevan ese curso
     */
    private void CargarAlumnos(){
        bandera1=false;
        this.CodigoPersonal.removeAllItems();
        short idcurso = Short.parseShort(idcursos.get(this.Curso.getSelectedIndex()).toString());
        List<Catedraticocurso> ccur = catcurso.findCatedraticocursoEntities();
        short id=0;
        for(Catedraticocurso ctcu: ccur){
            if((ctcu.getCatedratico().getIdCatedratico()==idcat)&&(ctcu.getCurso().getIdCurso()==idcurso)){
                id=ctcu.getIdCatedraticoCurso();
            }
        }
        List<Alumno> alumn = (List<Alumno>) catcurso.findCatedraticocurso(id).getGradoseccionciclo().getAlumnoCollection();
        for(Alumno al:alumn){
            this.CodigoPersonal.addItem(al.getCodigoPersonal());
        }
        if(!alumn.isEmpty()){
            this.CodigoPersonal.setEnabled(true);
            this.Actividad.setEnabled(true);
            this.Aceptar.setEnabled(true);
            this.Cancelar.setEnabled(true);
            CargarDatosAlumno();
            bandera1=true;
        }else{
            this.CodigoPersonal.setEnabled(false);
            this.Actividad.setEnabled(false);
            this.Aceptar.setEnabled(false);
            this.Cancelar.setEnabled(false);
            }
    }
    /** Este procedimiento carga las actividades que hay para cada curso
     */
    private void CargarActividad(){
        idnotas.clear();
        bandera2=false;
        this.Actividad.removeAllItems();
        short id = 0;
        for(Cursounidad c:cursos.findCursounidadEntities()){
            if((c.getUnidad().getIdUnidad()==idunidades.get(this.Unidad.getSelectedIndex()))&&
                    (c.getCatedraticocurso().getCiclocurso().getIdCicloCurso()==idciclos.get(this.Ciclo.getSelectedIndex()))&&
                    (c.getCatedraticocurso().getCurso().getIdCurso()==idcursos.get(this.Curso.getSelectedIndex()))){
                    id=c.getIdCursoUnidad();
                    break;
            }
        }
        if(id!=0){
            List<Nota> ntas = (List<Nota>) cursos.findCursounidad(id).getNotaCollection();
            //lleando de actividades
            for(Nota n:ntas){
                this.Actividad.addItem(n.getActividad());
                idnotas.add(n.getIdNota());
            }
            if(!ntas.isEmpty()){
                this.Actividad.setEnabled(true);
                this.Aceptar.setEnabled(true);
                this.Cancelar.setEnabled(true);
                this.NotaNObtenida.setEnabled(true);
                this.NotaPObtenida.setEnabled(true);
                this.Apuntes.setEditable(true);
                CargarDescripcion();
                bandera2=true;
            }else{
                Bloquear();
            }
        }else{
            Bloquear();
        }
    }
    private void Bloquear(){
        this.Desc.setText("");
        this.Actividad.setEnabled(false);
        this.Aceptar.setEnabled(false);
        this.Cancelar.setEnabled(false);
        this.NotaNObtenida.setEnabled(false);
        this.NotaPObtenida.setEnabled(false);
        this.Apuntes.setEditable(false);
        this.NotaN.setText("");
        this.Notap.setText("");
        ReiniciarCampos((byte)0);
    }
    /** Este procedimiento carga la descripcion y la nota de la actividad seleccionada para el curso
     */
    private void CargarDescripcion(){
        Nota nt = notas.findNota(Short.parseShort(idnotas.get(this.Actividad.getSelectedIndex())+""));
        this.Desc.setText(nt.getDescripción());
        this.NotaN.setText(nt.getNotaNeta());
        ntn = new SpinnerNumberModel(0.0,0.0,Double.parseDouble(nt.getNotaNeta()),0.1);
        this.NotaNObtenida.setModel(ntn);                
        this.Notap.setText(nt.getNotaPorcentual());
        ntp = new SpinnerNumberModel(0.0,0.0,Double.parseDouble(nt.getNotaPorcentual()),0.1);
        this.NotaPObtenida.setModel(ntp);
        short idalu = alumnos.pBuscarPorCodigoPersonal(this.CodigoPersonal.getSelectedItem()+"").get(0).getIdAlumno();
        short idnot = Short.parseShort(idnotas.get(this.Actividad.getSelectedIndex())+"");
        this.Apuntes.setText("");
        AlumnonotaPK pk = new AlumnonotaPK(idalu,idnot);
        if(alumnotas.findAlumnonota(pk)!=null){
            //msj.MensajeSeRealizo("Repetido", "repetido");
            repetido=true;
            Alumnonota al = alumnotas.findAlumnonota(pk);
            this.NotaNObtenida.setValue(Double.parseDouble(al.getNotaObtenidaNeta()));
            this.NotaPObtenida.setValue(Double.parseDouble(al.getNotaObtenidaPorcentual()));
            this.Apuntes.setText(al.getApuntes());
        }else{repetido=false;}
    }
    /** Este procedimiento carga los de los alumnos a los cuales el catedratico imparte clases
     */
    private void CargarDatosAlumno(){
        Alumno al = alumnos.pBuscarPorCodigoPersonal(this.CodigoPersonal.getSelectedItem()+"").get(0);
        this.Apellidos.setText(al.getApellidos());
        this.Nombres.setText(al.getNombres());
    }
    private void ReiniciarCampos(byte panel){
        if(panel==0){
            this.Apuntes.setText("");
            this.NotaNObtenida.setValue(0);
            this.NotaPObtenida.setValue(0);
        }else{
            CargarDescripcion();
        }
    }
    /** Este procedimiento carga los cursos que el catedratico imparte y a los cuales tiene acceso para asignar la nota
     */
    private void CargarCursos(){
        idcursos.clear();
        this.Curso.removeAllItems();
        List<Cursounidad> curso = cursos.findCursounidadEntities();
        for(Cursounidad cur:curso){
            boolean yaesta = false;
            short curid = cur.getCatedraticocurso().getCurso().getIdCurso();
            for(Object ids:idcursos){
                if(ids.equals(curid)){
                    yaesta=true;
                }
            }
            if((yaesta==false)&&(cur.getCatedraticocurso().getCatedratico().getIdCatedratico()==idcat)&&(cur.getCatedraticocurso().getCiclocurso().getIdCicloCurso()==idciclos.get(this.Ciclo.getSelectedIndex()))){
                this.Curso.addItem(cur.getCatedraticocurso().getCurso().getNombre());
                idcursos.add(cur.getCatedraticocurso().getCurso().getIdCurso());
                //System.out.println("909");
            }
        }
    }
    /** Este procedimiento se encarga de realizar la asinacion de la nota al alumno seleccionado
     */
    private void IngresarAsignacion(){
        short idalu = alumnos.pBuscarPorCodigoPersonal(this.CodigoPersonal.getSelectedItem()+"").get(0).getIdAlumno();
        short idnot = Short.parseShort(idnotas.get(this.Actividad.getSelectedIndex())+"");
        System.out.println(idalu+"+"+idnot);
        AlumnonotaPK pk = new AlumnonotaPK(idalu,idnot);
        Alumnonota nuevo = new Alumnonota(pk,(this.NotaNObtenida.getValue()+"").substring(0,3),(this.NotaPObtenida.getValue()+"").substring(0,3));
        nuevo.setApuntes(this.Apuntes.getText());
        nuevo.setAlumno(alumnos.findAlumno(idalu));
        nuevo.setNota(notas.findNota(idnot));
        repetido=false;
        for(Alumnonota al:alumnotas.findAlumnonotaEntities()){
            if(al.getAlumnonotaPK().equals(pk)){
                repetido=true;
            }
        }
        try {
            if(repetido){
                alumnotas.destroy(pk);
            }
            alumnotas.create(nuevo);
        } catch (PreexistingEntityException ex) {
            Logger.getLogger(AsignacionNotaAlumno.class.getName()).log(Level.SEVERE, null, ex);
        } catch (Exception ex) {
            Logger.getLogger(AsignacionNotaAlumno.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    private void Aceptar(){
        if(!repetido){
            IngresarAsignacion();
            msj.MensajeSeRealizo("Se ha asignado la nota al alumno correctamente", "Asignado");
        }else{
            byte respuesta =msj.MensajeConfirmacion("¿Esta seguro que desea actualizar la nota de este alumno?");
            switch(respuesta){
                case 0: IngresarAsignacion();
                        msj.MensajeSeRealizo("Se ha actualizado la nota del alumno correctamente", "Actualizada");
                        break;
                case 2: System.out.println("Cancelar"); break;
            }
        }
    }
    private void Cancelar(){
        byte respuesta;
        if(!repetido){
            respuesta =msj.MensajeConfirmacion("¿Esta seguro que cancelar el ingreso? Todos los datos se perderan");
            switch(respuesta){
                case 0: ReiniciarCampos((byte)0);
                    break;
                case 2: System.out.println("Cancelar"); break;
            }
        }else{
            respuesta =msj.MensajeConfirmacion("¿Esta seguro que desea cancelar la actualizacion? Todos los datos que no esten guardados se perderan");
            switch(respuesta){
                case 0: ReiniciarCampos((byte)1);
                        break;
                case 2: System.out.println("Cancelar"); break;
                }
        }
    }
    /**
     *
     */
    public class MiModelo extends DefaultTableModel
    {
       @Override
       public boolean isCellEditable (int row, int column)
       {
           return false;
       }
    }
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTaskPane1 = new com.l2fprod.common.swing.JTaskPane();
        jLabel1 = new javax.swing.JLabel();
        Descripcion = new javax.swing.JLabel();
        CRUDiNotaAlumno = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jPanel3 = new javax.swing.JPanel();
        CodigoPersonal = new javax.swing.JComboBox();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        Apellidos = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        Nombres = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        Unidad = new javax.swing.JComboBox();
        Curso = new javax.swing.JComboBox();
        jLabel9 = new javax.swing.JLabel();
        Actividad = new javax.swing.JComboBox();
        jPanel4 = new javax.swing.JPanel();
        jLabel10 = new javax.swing.JLabel();
        NotaPObtenida = new javax.swing.JSpinner();
        jLabel11 = new javax.swing.JLabel();
        NotaNObtenida = new javax.swing.JSpinner();
        NotaPorcentual = new javax.swing.JLabel();
        NotaPorcentual1 = new javax.swing.JLabel();
        Notap = new javax.swing.JLabel();
        NotaN = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        Apuntes = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        Ciclo = new javax.swing.JComboBox();
        jScrollPane1 = new javax.swing.JScrollPane();
        Desc = new javax.swing.JTextArea();
        jPanel2 = new javax.swing.JPanel();
        jLabel13 = new javax.swing.JLabel();
        CicloCursoUnidad = new javax.swing.JComboBox();
        jScrollPane2 = new javax.swing.JScrollPane();
        TablaReporte = new javax.swing.JTable();
        Aceptar = new javax.swing.JButton();
        Cancelar = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("AsignacionNotasAlumnos");
        setName("pNotasAlumnos"); // NOI18N

        com.l2fprod.common.swing.PercentLayout percentLayout2 = new com.l2fprod.common.swing.PercentLayout();
        percentLayout2.setGap(14);
        percentLayout2.setOrientation(1);
        jTaskPane1.setLayout(percentLayout2);

        jLabel1.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(255, 255, 255));
        jLabel1.setText("Asignacion de notas a Alumnos");
        jTaskPane1.add(jLabel1);

        Descripcion.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        Descripcion.setForeground(new java.awt.Color(255, 255, 255));
        jTaskPane1.add(Descripcion);

        CRUDiNotaAlumno.setFont(new java.awt.Font("Arial", 0, 12));
        CRUDiNotaAlumno.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                CRUDiNotaAlumnoStateChanged(evt);
            }
        });

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Alumno", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 0, 12))); // NOI18N
        jPanel3.setToolTipText("Datos del Alumno");

        CodigoPersonal.setFont(new java.awt.Font("Arial", 0, 12));
        CodigoPersonal.setNextFocusableComponent(NotaPObtenida);
        CodigoPersonal.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                CodigoPersonalItemStateChanged(evt);
            }
        });

        jLabel2.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel2.setText("Codigo Personal: ");

        jLabel3.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel3.setText("Apellidos:");

        Apellidos.setFont(new java.awt.Font("Arial", 0, 12));
        Apellidos.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel5.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel5.setText("Nombres:");

        Nombres.setFont(new java.awt.Font("Arial", 0, 12));
        Nombres.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel2)
                    .addComponent(jLabel3)
                    .addComponent(jLabel5))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(Nombres, javax.swing.GroupLayout.DEFAULT_SIZE, 166, Short.MAX_VALUE)
                    .addComponent(Apellidos, javax.swing.GroupLayout.DEFAULT_SIZE, 166, Short.MAX_VALUE)
                    .addComponent(CodigoPersonal, 0, 166, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(CodigoPersonal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(Apellidos, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(Nombres, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabel7.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel7.setText("Curso:");

        jLabel8.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel8.setText("Unidad:");

        Unidad.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        Unidad.setNextFocusableComponent(Actividad);
        Unidad.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                UnidadItemStateChanged(evt);
            }
        });

        Curso.setFont(new java.awt.Font("Arial", 0, 12));
        Curso.setNextFocusableComponent(Unidad);
        Curso.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                CursoItemStateChanged(evt);
            }
        });

        jLabel9.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel9.setText("Actividad:");

        Actividad.setFont(new java.awt.Font("Arial", 0, 12));
        Actividad.setNextFocusableComponent(CodigoPersonal);
        Actividad.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                ActividadItemStateChanged(evt);
            }
        });

        jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Nota obtenida", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 0, 12))); // NOI18N

        jLabel10.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel10.setText("Nota porcentual:");

        NotaPObtenida.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        NotaPObtenida.setNextFocusableComponent(NotaNObtenida);

        jLabel11.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel11.setText("Nota neta:");

        NotaNObtenida.setFont(new java.awt.Font("Arial", 0, 12));
        NotaNObtenida.setNextFocusableComponent(Apuntes);

        NotaPorcentual.setFont(new java.awt.Font("Arial", 1, 12));
        NotaPorcentual.setText("de");

        NotaPorcentual1.setFont(new java.awt.Font("Arial", 1, 12));
        NotaPorcentual1.setText("de");

        Notap.setFont(new java.awt.Font("Arial", 1, 12));
        Notap.setText("nota total");

        NotaN.setFont(new java.awt.Font("Arial", 1, 12));
        NotaN.setText("nota total");

        jLabel4.setText("Apuntes:");

        Apuntes.setNextFocusableComponent(Cancelar);

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel10)
                    .addComponent(jLabel11)
                    .addComponent(jLabel4))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(NotaNObtenida, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(NotaPorcentual1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(NotaN, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(NotaPObtenida, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(NotaPorcentual)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(Notap, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE))
                    .addComponent(Apuntes, javax.swing.GroupLayout.DEFAULT_SIZE, 199, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel10)
                    .addComponent(NotaPObtenida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(NotaPorcentual)
                    .addComponent(Notap))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel11)
                    .addComponent(NotaNObtenida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(NotaPorcentual1)
                    .addComponent(NotaN))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(Apuntes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabel12.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        jLabel12.setText("Ciclo:");

        Ciclo.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        Ciclo.setNextFocusableComponent(Curso);
        Ciclo.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                CicloItemStateChanged(evt);
            }
        });

        Desc.setColumns(20);
        Desc.setEditable(false);
        Desc.setFont(new java.awt.Font("Arial", 0, 12));
        Desc.setRows(5);
        jScrollPane1.setViewportView(Desc);

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel8)
                            .addComponent(jLabel7)
                            .addComponent(jLabel12)
                            .addComponent(jLabel9))
                        .addGap(8, 8, 8)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(Actividad, javax.swing.GroupLayout.Alignment.TRAILING, 0, 203, Short.MAX_VALUE)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(6, 6, 6)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(Unidad, javax.swing.GroupLayout.Alignment.TRAILING, 0, 197, Short.MAX_VALUE)
                                    .addComponent(Curso, javax.swing.GroupLayout.Alignment.TRAILING, 0, 197, Short.MAX_VALUE)
                                    .addComponent(Ciclo, 0, 197, Short.MAX_VALUE)))))
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 262, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(Ciclo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel12))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(Curso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel7))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(Unidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel8))
                        .addGap(7, 7, 7)))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel9)
                            .addComponent(Actividad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(10, 10, 10)
                        .addComponent(jScrollPane1))
                    .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(17, Short.MAX_VALUE))
        );

        CRUDiNotaAlumno.addTab("Asignar Nota a alumno", jPanel1);

        jLabel13.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        jLabel13.setText("Ciclo - Curso - Unidad: ");

        CicloCursoUnidad.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        CicloCursoUnidad.setNextFocusableComponent(Unidad);
        CicloCursoUnidad.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                CicloCursoUnidadItemStateChanged(evt);
            }
        });

        TablaReporte.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        TablaReporte.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane2.setViewportView(TablaReporte);

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel13)
                .addGap(18, 18, 18)
                .addComponent(CicloCursoUnidad, 0, 451, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 597, Short.MAX_VALUE)
                    .addContainerGap()))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(CicloCursoUnidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel13))
                .addContainerGap(242, Short.MAX_VALUE))
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addGap(43, 43, 43)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 220, Short.MAX_VALUE)
                    .addContainerGap()))
        );

        CRUDiNotaAlumno.addTab("Reporte de las notas de los alumnos", jPanel2);

        Aceptar.setFont(new java.awt.Font("Arial", 0, 12));
        Aceptar.setText("Aceptar");
        Aceptar.setNextFocusableComponent(CRUDiNotaAlumno);
        Aceptar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AceptarActionPerformed(evt);
            }
        });
        Aceptar.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                AceptarKeyPressed(evt);
            }
        });

        Cancelar.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        Cancelar.setText("Cancelar");
        Cancelar.setNextFocusableComponent(Aceptar);
        Cancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CancelarActionPerformed(evt);
            }
        });
        Cancelar.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                CancelarKeyPressed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTaskPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 642, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(CRUDiNotaAlumno, javax.swing.GroupLayout.DEFAULT_SIZE, 622, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(466, Short.MAX_VALUE)
                .addComponent(Cancelar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(Aceptar)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jTaskPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(CRUDiNotaAlumno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Aceptar)
                    .addComponent(Cancelar))
                .addGap(21, 21, 21))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void AceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AceptarActionPerformed
        // TODO add your handling code here:
        Aceptar();
}//GEN-LAST:event_AceptarActionPerformed

    private void AceptarKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_AceptarKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            Aceptar();
        }
}//GEN-LAST:event_AceptarKeyPressed

    private void CancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CancelarActionPerformed
        // TODO add your handling code here:
        Cancelar();
}//GEN-LAST:event_CancelarActionPerformed

    private void CancelarKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_CancelarKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            Cancelar();
        }
}//GEN-LAST:event_CancelarKeyPressed

    private void CursoItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_CursoItemStateChanged
        // TODO add your handling code here:
        bandera3=false;
        if(bandera){
            CargarAlumnos();
            CargarUnidades();
            CargarActividad();
            bandera3=true;
        }
    }//GEN-LAST:event_CursoItemStateChanged

    private void CodigoPersonalItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_CodigoPersonalItemStateChanged
        // TODO add your handling code here:
        if(bandera1){
            CargarDatosAlumno();
            if(this.Actividad.isEnabled()){
                CargarDescripcion();
            }
        }
    }//GEN-LAST:event_CodigoPersonalItemStateChanged

    private void CicloItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_CicloItemStateChanged
        // TODO add your handling code here:
        bandera=false;
        bandera3=false;
        if(bandera0){
            CargarCursos();
            CargarAlumnos();
            CargarUnidades();
            CargarActividad();
            bandera=true;
            bandera3=true;
        }
    }//GEN-LAST:event_CicloItemStateChanged

    private void ActividadItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_ActividadItemStateChanged
        // TODO add your handling code here:
        if(bandera2){
            CargarDescripcion();
        }
    }//GEN-LAST:event_ActividadItemStateChanged

    private void UnidadItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_UnidadItemStateChanged
        // TODO add your handling code here:
        if(bandera3){
            CargarActividad();
        }
    }//GEN-LAST:event_UnidadItemStateChanged

    private void CicloCursoUnidadItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_CicloCursoUnidadItemStateChanged
        // TODO add your handling code here:
        if(bandera4){
            CargarDatosReporte();
        }
    }//GEN-LAST:event_CicloCursoUnidadItemStateChanged

    private void CRUDiNotaAlumnoStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_CRUDiNotaAlumnoStateChanged
        // TODO add your handling code here:
        if(this.CRUDiNotaAlumno.getSelectedIndex()==1){
            this.Descripcion.setText("Reporte de notas por alumno");
            this.Aceptar.setEnabled(false);
            this.Cancelar.setEnabled(false);
        }else{
            this.Descripcion.setText("Asignacion de notas a alumnos");
            this.Aceptar.setEnabled(true);
            this.Cancelar.setEnabled(true);
        }
    }//GEN-LAST:event_CRUDiNotaAlumnoStateChanged

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                try
                {
                //Correcion hecha por Chuster Boy ;)
                    UIManager.setLookAndFeel("com.birosoft.liquid.LiquidLookAndFeel");
                }
                catch (Exception e)
                {
                    e.printStackTrace();
                }
                AsignacionNotaAlumno dialog = new AsignacionNotaAlumno(new javax.swing.JFrame(), true,(short)1);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton Aceptar;
    private javax.swing.JComboBox Actividad;
    private javax.swing.JLabel Apellidos;
    private javax.swing.JTextField Apuntes;
    private javax.swing.JTabbedPane CRUDiNotaAlumno;
    private javax.swing.JButton Cancelar;
    private javax.swing.JComboBox Ciclo;
    private javax.swing.JComboBox CicloCursoUnidad;
    private javax.swing.JComboBox CodigoPersonal;
    private javax.swing.JComboBox Curso;
    private javax.swing.JTextArea Desc;
    private javax.swing.JLabel Descripcion;
    private javax.swing.JLabel Nombres;
    private javax.swing.JLabel NotaN;
    private javax.swing.JSpinner NotaNObtenida;
    private javax.swing.JSpinner NotaPObtenida;
    private javax.swing.JLabel NotaPorcentual;
    private javax.swing.JLabel NotaPorcentual1;
    private javax.swing.JLabel Notap;
    private javax.swing.JTable TablaReporte;
    private javax.swing.JComboBox Unidad;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private com.l2fprod.common.swing.JTaskPane jTaskPane1;
    // End of variables declaration//GEN-END:variables

}
